/**
 * @author lk
 * @date 2022/6/2 9:50
 */
package com.mmall.spring5.aopanno;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@Aspect
@Order(10)
public class ObjectProxy {
    @Before("execution(* com.mmall.spring5.aopanno.Cup.add(..))")
    public void before() {
        System.out.println(String.valueOf(new Date()) + ", object before ok!!!");
    }
}
